Cavern

 Cavern4D

 Cavernize

 Debug

 FilterInterfaces

 Filters

 Format

 Helpers

 QuickEQ

  EQCurves

  Equalization

  SignalGeneration

  Utilities

  FilterAnalyzer

  GraphUtils

  PinkNoiseDetector

  Adaptation

  GetProbability(float[])

  GetProbabilityOfSpectrum(float[])

  MaxFreq

  MinFreq

  PinkNoiseDetector(int, int, FFTCache, float, float)

  IDisposable

  MeasurementImporter

  MeasurementImporterStatus

  NoisyChannel

  SpeakerSweeper

  VerboseImpulseResponse

  Window

  Windowing

 Remapping

 SpecialSources

 Spoofer

 Utilities

 Virtualizer

 Atmosphere

 AudioClip3D

 AudioListener3D

 AudioListener3DInspector

 AudioSource3D

 CavernizeRealtime

 Channel

 Clip

 Environments

 Jack

 Listener

 QualityModes

 Rolloffs

 SeatAdaptation

 Source

class PinkNoiseDetector

Detects pink noise in sequential blocks of samples.
VisibilityPublic

Public functions

float GetProbability(float[] sampleBlock) Get the likeliness that the next block is pink noise.
float GetProbabilityOfSpectrum(float[] spectrum)Get the likeliness that the next block (in the form of |FFT|) is pink noise.
Constructor PinkNoiseDetector(int blockSize, int sampleRate, FFTCache cache = null, float minFreq = 100, float maxFreq = 16000)Detects pink noise in sequential blocks of samples.

Public properties

int AdaptationNumber of frames to calculate the probability from. The more frames measured, the better the chance of true positives,
but this decreases detection speed.
float MaxFreqMaximum noise detection frequency.
float MinFreqMinimum noise detection frequency.